* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
    'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  width: 100%;
  height: 100vh;
}

// 滚动条样式
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
  
  &:hover {
    background: #a8a8a8;
  }
}

// Element Plus 样式覆盖
.el-card {
  border-radius: 8px;
  
  .el-card__header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .el-card__body {
    padding: 20px;
  }
}

.el-button {
  border-radius: 6px;
}

.el-input {
  .el-input__wrapper {
    border-radius: 6px;
  }
}

// 美化表格溢出提示框
// Element Plus 表格溢出提示的全局样式
.el-tooltip__popper,
.el-popper[role="tooltip"] {
  max-width: 400px !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  padding: 10px 14px !important;
  background: rgba(0, 0, 0, 0.9) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  transition: all 0.2s ease;
  
  // 箭头样式
  .el-tooltip__arrow,
  .el-popper__arrow {
    &::before {
      background: rgba(0, 0, 0, 0.9) !important;
      border: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
  }
  
  // 内容区域
  .el-tooltip__content {
    color: #fff !important;
    word-break: break-word;
    white-space: normal;
  }
  
  // 深色模式适配
  &.is-dark {
    background: rgba(0, 0, 0, 0.9) !important;
    color: #fff !important;
  }
  
  // 悬停效果
  &:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.15) inset !important;
  }
}

// 表格单元格文本溢出时的样式优化
// 只针对表格内的单元格，避免影响其他组件（如 select）
.el-table {
  .el-table__cell {
    .cell {
      word-break: break-word;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      line-height: 1.5;
    }
  }
}

